<!DOCTYPE html>
<html lang="zh" ng-app="ionicApp">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
	<title>汪卡商家列表</title>
	<link rel="stylesheet" href="/Public/style/bootstrap/Cyborg/bootstrap-3.3.5.min.css">
	<script type="text/javascript" src="/Public/node_modules/angular/angular.min.js"></script>
	<script type="text/javascript" src="/Public/node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>
	<script type="text/javascript" src="/Public/javascript/lowersrc.js"></script>
	<script type="text/javascript" src="/Public/javascript/business/shopList.js"></script>
	<style>
		img.img-thumbnail{width:90px; height: 90px;}
	</style>
</head>

<body>
<body ng-controller="shopListCtrl">
<nav class="navbar navbar-default">
	<div class="container-fluid">
		<div class="navbar-header center-block">
			<a class="navbar-brand" href="#">美食</a>
		</div>
	</div>
</nav>
<nav class="navbar navbar-primary">
	<div class="row">
		<div class="dropdown col-xs-6" uib-dropdown on-toggle="toggled(open)">
			<button uib-dropdown-toggle href="#" id="simple-dropdown" class="btn btn-success btn-block">分类 <span class="caret"></span></button>
			<ul uib-dropdown-menu aria-labelledby="simple-dropdown">
				<foreach name="category" item="vo">
					<li><a href="#" ng-click="link_url({$vo.id})">{$vo.title}</a></li>
				</foreach>
				<li role="separator" class="divider"></li>
				<li><a href="#" ng-click="link_all()">全部分类</a></li>
			</ul>
		</div>
		<div class="dropdown col-xs-6" uib-dropdown on-toggle="toggled(open)">
			<button uib-dropdown-toggle href="#" id="simple-dropdown2" class="btn btn-success btn-block">筛选 <span class="caret"></span></button>
			<ul uib-dropdown-menu aria-labelledby="simple-dropdown2">
				<li><a href="#">满减</a></li>
				<li><a href="#">活动</a></li>
				<li><a href="#">现金抵用</a></li>
				<li role="separator" class="divider"></li>
				<li><a href="#">全部商家</a></li>
			</ul>
		</div>
	</div>
</nav>
<div class="container-fluid">
	<div class="row">
		<div class="col-xs-12">
			<ul class="list-group" ng-show="showAll">
				<foreach name="list" item="vo">
					<li class="list-group-item">
						<a href="{$vo.url}">
							<div class="row">
								<div class="col-xs-4">
									<img src="{$vo.logo_img.src}" class="img-thumbnail {$vo.logo_img.class}" data-text="{$vo.logo_img.attr}">
								</div>
								<div class="col-xs-8">
									<h6>{$vo.title}</h6>
									<abbr title="Phone">地址:</abbr> {$vo.address}<br>
									<abbr title="Phone">电话:</abbr> {$vo.tel} <br>
									<abbr title="Phone">优惠:</abbr> <span class="badge">现</span> <span class="badge">满</span>
								</div>
							</div>
						</a>
					</li>
				</foreach>
			</ul>
			<ul class="list-group" ng-show="showCate">
				<li class="list-group-item" ng-repeat="vo in shopList">
					<a href="{{vo.url}}">
						<div class="row">
							<div class="col-xs-4">
								<img src="{{vo.logo_img.src}}" class="img-thumbnail {{vo.logo_img.class}}" data-text="{{vo.logo_img.attr}}">
							</div>
							<div class="col-xs-8">
								<h6>{{vo.title}}</h6>
								<abbr title="Phone">地址:</abbr> {{vo.address}}<br>
								<abbr title="Phone">电话:</abbr> {{vo.tel}} <br>
								<abbr title="Phone">优惠:</abbr> <span class="badge">现</span> <span class="badge">满</span>
							</div>
						</div>
					</a>
				</li>
			</ul>
		</div>
	</div>
</div>
</body>
</html>
